<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<div class="panel-heading">
	<h3 class="panel-title">我发布的活动</h3>
</div>
<c:choose>
<c:when test="${!empty dataList && fn:length(dataList) ne 0}">
<table class="table">
	<thead>
		<tr>
			<th width="80%">活动名称</th>
			<th width="20%">发布时间</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="activity" items="${dataList}" varStatus="index">
		<tr>
			<td class="title">
				<a href="<%=path %>/check/activity/toUpdate/${activity.activityId}">${activity.activityName}</a>
			</td>
			<td><fmt:formatDate value="${activity.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
		</tr>
		</c:forEach>
	</tbody>
</table>
<!-- 分页 -->
<p:pagination pageNo="${paramMap.pageNo}" pageCount="${paramMap.pageCount}" queryFunction="queryMyActivityList" style="text-center"></p:pagination>
<!-- 分页 end -->
</c:when>
<c:otherwise>
	<table class="table">
		<thead>
			<tr>
				<th>标题</th>
				<th>时间</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td colspan="2" align="center">
					暂无数据
				</td>
			</tr>
		</tbody>
	</table>
</c:otherwise>
</c:choose>
